package com.soo.hoo.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.soo.hoo.core.model.BaseEntry;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 角色-权限关联表
 * </p>
 *
 * @author 杨燚
 * @since 2023-03-21
 */
@Getter
@Setter
@TableName("t_sys_role_permission")
public class SysRolePermission extends BaseEntry {

    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 角色id，对应t_sys_role表id列
     */
    private Long roleId;

    /**
     * 权限id，对应t_sys_permission表id列
     */
    private Long permissionId;
}
